import WorkFlowDesigner from "@/pages/WorkFlowDesigner";

import Test from "@/test";
import Board from "@/pages/example/Board";
import Login from "@/pages/user/Login";
import Homepage from "@/pages/components/Layout/Default";
import Register from "@/pages/user/Register";
import ApprovalList from "@/pages/example/ApprovalList";

/**
 * 路由表
 */
export default [
    {
        path: "/login",
        meta: {
            auth: false,
            title: "欢迎登录",
        },
        element: <Login/>
    },
    {
        path: "/register",
        element: <Register/>
    },


    {
        path: "/",
        meta: {
            title: "首页",
            auth: true // 开启权限认证
        },
        element: <Homepage/>,
        children: [
            {

                path: "/workflow",
                element: <WorkFlowDesigner/>,
                children: []
            },
            {
                path: "approval-board",
                element: <Board/>
            },


            {
                path: "approval-list",
                element: <ApprovalList />
            },

            {
                path: 'test',
                element: <Test/>
            },

        ]
        // element: <Navigate to="/workflow"/>

    },

]
